#include #include #include using namespace std; int main() { int i,j,sum,proionta; int asteria[4]; int max=0; for(j=0;j<4;j++) { cin>>proionta; sum=0; while(proionta>=0)//dwse proionta , dwse arnhtiko gia termatismos epanalhpshs// { sum=sum+proionta; cin>>proionta; } asteria[j]=sum/1000; if(sum % 1000>=500) asteria[j]++;//an xreiazetai strogulopoihsh ginetai edw// if(asteria[j]>max) max=asteria[j]; } cout<<"grammes paragwghs:"<